package com.ruoyi.shenji.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.shenji.domain.TableData;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

@Mapper
public interface TableDataMapper extends BaseMapper<TableData> {
    String getRoleKey(@Param("userId") Long userId);

    List<TableData> listWithAuth(@Param("roleKey")String roleKey);


    List<TableData> getByParentId(@Param("id")String id);

    TableData getParent(@Param("parentId")Integer parentId,@Param("roleKey")String roleKey);

    TableData getByName(@Param("name")String name,@Param("roleKey")String roleKey);

    List<TableData> selectTableList(TableData tableData,@Param("roleKey")String roleKey);
}
